package com.ruoyi.airsystem.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 甲醛浓度记录对象 air_formaldehyde
 * @date 2025-04-18
 */
public class AirFormaldehyde extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 甲醛浓度 */
    @Excel(name = "甲醛浓度")
    private BigDecimal formaldehydeLevel;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setFormaldehydeLevel(BigDecimal formaldehydeLevel) 
    {
        this.formaldehydeLevel = formaldehydeLevel;
    }

    public BigDecimal getFormaldehydeLevel() 
    {
        return formaldehydeLevel;
    }
    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("deviceId", getDeviceId())
            .append("formaldehydeLevel", getFormaldehydeLevel())
            .append("recordTime", getRecordTime())
            .toString();
    }
}
